package com.spider.site.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 历史爬取结果
 * @author wq
 *
 */
@Entity
@Table(name = "spider_history_result")
public class SpiderHistoryResult {

	@Id
	@Column(name = "ID" , length = 50)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long id;

	@Column(name = "NAME" , length = 50)
	private String name;//直播间名称

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "SPIN_DATE" , length = 50)
	private Date spinDate;//爬取的时间
	
	@Column(name = "SPIDER_RESULT_ID" , length = 50)
	private long spiderResultId;//对应的爬虫ID
	
	@Column(name = "COMMENTS")
	private String comments;//评论区

	@Column(name = "NUMBER" , length = 50)
	private long number;//观看人数
	
	public long getNumber() {
		return number;
	}

	public void setNumber(long number) {
		this.number = number;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getSpinDate() {
		return spinDate;
	}

	public void setSpinDate(Date spinDate) {
		this.spinDate = spinDate;
	}

	public long getSpiderResultId() {
		return spiderResultId;
	}

	public void setSpiderResultId(long spiderResultId) {
		this.spiderResultId = spiderResultId;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
	
}
